package com.google.code.mergeinformer.constraint;

import com.google.code.mergeinformer.constraint.impl.ReachableValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

/**
 * @author Dmitry Golubev
 */
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ReachableValidator.class)
public @interface Reachable {

    String message() default "URL is unreachable";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
